package com.briup.pts.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BaseLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    private Boolean forUpdate;

    public BaseLogExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    public void setForUpdate(Boolean forUpdate) {
        this.forUpdate = forUpdate;
    }

    public Boolean getForUpdate() {
        return forUpdate;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogIdIsNull() {
            addCriterion("log_id is null");
            return (Criteria) this;
        }

        public Criteria andLogIdIsNotNull() {
            addCriterion("log_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogIdEqualTo(Long value) {
            addCriterion("log_id =", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotEqualTo(Long value) {
            addCriterion("log_id <>", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThan(Long value) {
            addCriterion("log_id >", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThanOrEqualTo(Long value) {
            addCriterion("log_id >=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThan(Long value) {
            addCriterion("log_id <", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThanOrEqualTo(Long value) {
            addCriterion("log_id <=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdIn(List<Long> values) {
            addCriterion("log_id in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotIn(List<Long> values) {
            addCriterion("log_id not in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdBetween(Long value1, Long value2) {
            addCriterion("log_id between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotBetween(Long value1, Long value2) {
            addCriterion("log_id not between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andLogUsernameIsNull() {
            addCriterion("log_username is null");
            return (Criteria) this;
        }

        public Criteria andLogUsernameIsNotNull() {
            addCriterion("log_username is not null");
            return (Criteria) this;
        }

        public Criteria andLogUsernameEqualTo(String value) {
            addCriterion("log_username =", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameNotEqualTo(String value) {
            addCriterion("log_username <>", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameGreaterThan(String value) {
            addCriterion("log_username >", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("log_username >=", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameLessThan(String value) {
            addCriterion("log_username <", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameLessThanOrEqualTo(String value) {
            addCriterion("log_username <=", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameLike(String value) {
            addCriterion("log_username like", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameNotLike(String value) {
            addCriterion("log_username not like", value, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameIn(List<String> values) {
            addCriterion("log_username in", values, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameNotIn(List<String> values) {
            addCriterion("log_username not in", values, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameBetween(String value1, String value2) {
            addCriterion("log_username between", value1, value2, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogUsernameNotBetween(String value1, String value2) {
            addCriterion("log_username not between", value1, value2, "logUsername");
            return (Criteria) this;
        }

        public Criteria andLogHostIsNull() {
            addCriterion("log_host is null");
            return (Criteria) this;
        }

        public Criteria andLogHostIsNotNull() {
            addCriterion("log_host is not null");
            return (Criteria) this;
        }

        public Criteria andLogHostEqualTo(String value) {
            addCriterion("log_host =", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostNotEqualTo(String value) {
            addCriterion("log_host <>", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostGreaterThan(String value) {
            addCriterion("log_host >", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostGreaterThanOrEqualTo(String value) {
            addCriterion("log_host >=", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostLessThan(String value) {
            addCriterion("log_host <", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostLessThanOrEqualTo(String value) {
            addCriterion("log_host <=", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostLike(String value) {
            addCriterion("log_host like", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostNotLike(String value) {
            addCriterion("log_host not like", value, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostIn(List<String> values) {
            addCriterion("log_host in", values, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostNotIn(List<String> values) {
            addCriterion("log_host not in", values, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostBetween(String value1, String value2) {
            addCriterion("log_host between", value1, value2, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogHostNotBetween(String value1, String value2) {
            addCriterion("log_host not between", value1, value2, "logHost");
            return (Criteria) this;
        }

        public Criteria andLogRealnameIsNull() {
            addCriterion("log_realname is null");
            return (Criteria) this;
        }

        public Criteria andLogRealnameIsNotNull() {
            addCriterion("log_realname is not null");
            return (Criteria) this;
        }

        public Criteria andLogRealnameEqualTo(String value) {
            addCriterion("log_realname =", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameNotEqualTo(String value) {
            addCriterion("log_realname <>", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameGreaterThan(String value) {
            addCriterion("log_realname >", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameGreaterThanOrEqualTo(String value) {
            addCriterion("log_realname >=", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameLessThan(String value) {
            addCriterion("log_realname <", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameLessThanOrEqualTo(String value) {
            addCriterion("log_realname <=", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameLike(String value) {
            addCriterion("log_realname like", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameNotLike(String value) {
            addCriterion("log_realname not like", value, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameIn(List<String> values) {
            addCriterion("log_realname in", values, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameNotIn(List<String> values) {
            addCriterion("log_realname not in", values, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameBetween(String value1, String value2) {
            addCriterion("log_realname between", value1, value2, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRealnameNotBetween(String value1, String value2) {
            addCriterion("log_realname not between", value1, value2, "logRealname");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodIsNull() {
            addCriterion("log_request_method is null");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodIsNotNull() {
            addCriterion("log_request_method is not null");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodEqualTo(String value) {
            addCriterion("log_request_method =", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodNotEqualTo(String value) {
            addCriterion("log_request_method <>", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodGreaterThan(String value) {
            addCriterion("log_request_method >", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodGreaterThanOrEqualTo(String value) {
            addCriterion("log_request_method >=", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodLessThan(String value) {
            addCriterion("log_request_method <", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodLessThanOrEqualTo(String value) {
            addCriterion("log_request_method <=", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodLike(String value) {
            addCriterion("log_request_method like", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodNotLike(String value) {
            addCriterion("log_request_method not like", value, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodIn(List<String> values) {
            addCriterion("log_request_method in", values, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodNotIn(List<String> values) {
            addCriterion("log_request_method not in", values, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodBetween(String value1, String value2) {
            addCriterion("log_request_method between", value1, value2, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestMethodNotBetween(String value1, String value2) {
            addCriterion("log_request_method not between", value1, value2, "logRequestMethod");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriIsNull() {
            addCriterion("log_request_uri is null");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriIsNotNull() {
            addCriterion("log_request_uri is not null");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriEqualTo(String value) {
            addCriterion("log_request_uri =", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriNotEqualTo(String value) {
            addCriterion("log_request_uri <>", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriGreaterThan(String value) {
            addCriterion("log_request_uri >", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriGreaterThanOrEqualTo(String value) {
            addCriterion("log_request_uri >=", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriLessThan(String value) {
            addCriterion("log_request_uri <", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriLessThanOrEqualTo(String value) {
            addCriterion("log_request_uri <=", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriLike(String value) {
            addCriterion("log_request_uri like", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriNotLike(String value) {
            addCriterion("log_request_uri not like", value, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriIn(List<String> values) {
            addCriterion("log_request_uri in", values, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriNotIn(List<String> values) {
            addCriterion("log_request_uri not in", values, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriBetween(String value1, String value2) {
            addCriterion("log_request_uri between", value1, value2, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogRequestUriNotBetween(String value1, String value2) {
            addCriterion("log_request_uri not between", value1, value2, "logRequestUri");
            return (Criteria) this;
        }

        public Criteria andLogTimeIsNull() {
            addCriterion("log_time is null");
            return (Criteria) this;
        }

        public Criteria andLogTimeIsNotNull() {
            addCriterion("log_time is not null");
            return (Criteria) this;
        }

        public Criteria andLogTimeEqualTo(Date value) {
            addCriterion("log_time =", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeNotEqualTo(Date value) {
            addCriterion("log_time <>", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeGreaterThan(Date value) {
            addCriterion("log_time >", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("log_time >=", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeLessThan(Date value) {
            addCriterion("log_time <", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeLessThanOrEqualTo(Date value) {
            addCriterion("log_time <=", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeIn(List<Date> values) {
            addCriterion("log_time in", values, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeNotIn(List<Date> values) {
            addCriterion("log_time not in", values, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeBetween(Date value1, Date value2) {
            addCriterion("log_time between", value1, value2, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeNotBetween(Date value1, Date value2) {
            addCriterion("log_time not between", value1, value2, "logTime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}